package com.mtzqc.common.app

import android.app.Application
import com.blankj.utilcode.util.MetaDataUtils
import com.mtzqc.SupportApp
import com.mtzqc.common.BuildConfig
import com.mtzqc.common.kt.loadService
import com.mtzqc.common.service.*

object App {

    /**
     * 获取Application
     */
    @JvmStatic
    fun app(): Application = SupportApp.app()





    @JvmStatic
    val event: EventService by lazy {
        loadService()
    }

    fun isDebug(): Boolean =  BuildConfig.openDebug || BuildConfig.DEBUG

    fun isDev(): Boolean = BuildConfig.dev
    val buildChannel by lazy{
        MetaDataUtils.getMetaDataInApp("BUILD_CHANNEL")
    }

}